from 招募结算一体流程.settleApplication import createThreadAndRun


# 假设这是你要定时执行的函数
def settle_application():
    createThreadAndRun()
    print("Settlement application is running...")


# 创建调度器
scheduler = BlockingScheduler()

# 添加定时任务，每小时执行一次settle_application函数
scheduler.add_job(settle_application, 'interval', hours=1)

# 开始调度器
print("Scheduler started...")
scheduler.start()
